﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Category_Pro.aspx.cs" Inherits="Sbook.AdminIstrator.Category_Pro" %>

<%@ Register src="ControlAdmin/ucLogout.ascx" tagname="ucLogout" tagprefix="uc1" %>
<%@ Register Src="ControlAdmin/MenuTop.ascx" TagName="MenuTop" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Add Category Procedure</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/ddaccordion.js"></script>
<script type="text/javascript">
    ddaccordion.init({
        headerclass: "submenuheader", //Shared CSS class name of headers group
        contentclass: "submenu", //Shared CSS class name of contents group
        revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
        mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
        collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
        defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
        onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
        animatedefault: false, //Should contents open by default be animated into view?
        persiststate: true, //persist state of opened contents within browser session?
        toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
        togglehtml: ["suffix", "<img src='images/plus.gif' class='statusicon' />", "<img src='images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
        animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
        oninit: function (headers, expandedindices) { //custom code to run when headers have initalized
            //do nothing
        },
        onopenclose: function (header, index, state, isuseractivated) { //custom code to run whenever a header is opened or closed
            //do nothing
        }
    })
</script>
<script src="js/jquery.jclock-1.2.0.js.txt" type="text/javascript"></script>
<script type="text/javascript" src="js/jconfirmaction.jquery.js"></script>
<script type="text/javascript">

    $(document).ready(function () {
        $('.ask').jConfirmAction();
    });
	
</script>
<script type="text/javascript">
    $(function ($) {
        $('.jclock').jclock();
    });


</script>

       <%-- <script type="text/javascript">
            function Change_Cate(c) {
                var v = c.value;

                window.location.href = "Category_Pro.aspx?CId=" + v;
            }
            var cat = document.getElementById("Scate").getAttribute("c");
            if (cat != "")
                document.getElementById("Scate").value = cat;
                        
           </script>
     
     --%>

<script language="javascript" type="text/javascript" src="js/niceforms.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="css/niceforms-default.css" />

</head>
<body>

    <form id="form1" runat="server">

<div id="main_container">

	<div class="header">
    <div class="logo"><a href="adminsys.aspx"><img alt="" src="../images/logo_sach.gif" width="130" height="100" border="0" /></a></div>
    
    <div class="right_header">Welcome Admin, <a href="#">Visit site</a> | <a href="#" class="messages">(3) Messages</a> | <%--<a href="#" class="logout">Logout</a>--%><uc1:ucLogout 
            ID="ucLogout1" runat="server" />
        </div>
    <div class="jclock"></div>
    </div>
    
    <div class="main_content">
    
    <uc1:MenuTop runat="server" ID="menuTop" />
                    
                    
                    
    <div class="center_content">  
    
    
    
    <div class="left_content">
    
    		<div class="sidebar_search">
            <input type="text" name="" class="search_input" value="search keyword" onclick="this.value=''" />
            <input type="image" class="search_submit" src="images/search.png" />
            </div>
    
            <div class="sidebarmenu">
       	    <a class="menuitem" href="adminsys.html">LIST DELIVERY NOTE</a>
                <a class="menuitem submenuheader" href="">Danh Mục</a>
                <div class="submenu">
                    <ul>
                    <li><a href="">Danh Mục 1</a></li>
                    <li><a href="">Danh Mục 1</a></li>
                    <li><a href="">Danh Mục 1</a></li>
                    <li><a href="">Danh Mục 1</a></li>
                    <li><a href="">Danh Mục 1</a></li>
                    </ul>
                </div>
                <a class="menuitem submenuheader" href="">Danh Mục 2</a>
                <div class="submenu">
                    <ul>
                    <li><a href="">Danh Mục 1</a></li>
                    <li><a href="">Danh Mục 1</a></li>
                    <li><a href="">Danh Mục 1</a></li>
                    <li><a href="">Danh Mục 1</a></li>
                    <li><a href="">Danh Mục 1</a></li>
                    </ul>
                </div>
                
              <a class="menuitem" href="">ABC</a>
            </div>
            <div class="sidebar_box">
            </div>
              
    
    </div>  
    
    <div class="right_content">            
        
    <h2>Add Category Procedure</h2>


        <table>
            <tr>
                <td>Category Name :</td>
                <td><input type="text" name="txtName"/></td>
            </tr>
            <tr>
                <td>Status :</td>
                <td><select name="sl_status">
                    <option value="1">Hiện</option>
                    <option value="0">Ẩn</option>
                </select></td>
            </tr>
            <tr>
                <td>Parent Name :</td>
                <td><select name="sl_PCat" id="Scate"  >
                    <asp:Repeater runat="server" ID="rp_Cate">
                        <ItemTemplate>
                             <option value="<%#Eval("CId") %>"><%#Eval("CName") %></option>
                        </ItemTemplate>
                    </asp:Repeater>
                   
                   
                </select></td>
            </tr>
      
        </table>
             
     
     
	 <p><a href="#" class="bt_green" id="AddCat"><span class="bt_green_lft"></span><strong>Add new item</strong><span class="bt_green_r"></span></a> </p>
     <script type="text/javascript">
         $(document).ready(function () {
             $("#AddCat").click(function () {
                 $("#frmAddCat").submit();
             });
         });
     </script>
<p>&nbsp;</p>
	 <p>&nbsp;</p>
	 <p>&nbsp;</p>
	 <p>&nbsp;</p>
    </div>
    <!-- end of right content-->
            
                    
  </div>   <!--end of center content -->               
                    
                    
    
    
    <div class="clear"></div>
    </div> <!--end of main content-->
	
    
    <div class="footer">
    
    	<div class="left_footer">SBooks 2012<a href="http://indeziner.com"></a></div>
    </div>

</div>	

    </form>

</body>
</html>

